/**Created by the LayaAirIDE*/
package view
{
	import ui.GameViewUI
	import laya.events.Event;
	import laya.maths.Point;
	import laya.d3.core.Camera;

	public class GameView extends GameViewUI
	{
		public function GameView() 
		{
			btn_set.on(Event.CLICK,this,onClickSetting);
		}

		public function bindCamera(camera:GameCamera):void
		{
			joystick.bindCamera(camera);
		}

		public function setCount(num:int):void
		{
			txt_count.text = "剩余："+num+"/"+GameManager.MAX_TARGET_NUM;
		}

		private function onClickSetting():void
		{
			GameManager.getInstance().openGameSetting();
		}

		public function setScore(score:int):void
		{
			txt_score.text = "得分：" + score;
		}

		public function setLog(str:String):void
		{
			txt_test.text = str;
		}
	}

}